//
//  regDoneViewController.m
//  ZPSALE
//
//  Created by tmosport on 14-7-2.
//  Copyright (c) 2014年 tmosport. All rights reserved.
//

#import "regDoneViewController.h"

@interface regDoneViewController ()
@property (strong, nonatomic) IBOutlet UIButton *startBt;
- (IBAction)startAction:(UIButton *)sender;

@end

@implementation regDoneViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setupButton];
}

- (void)setupButton
{
    [_startBt.layer setCornerRadius:5.0];
    [_startBt setBackgroundColor:ColorFromRGB(0xff0100)];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)startAction:(UIButton *)sender {
    [self dismissViewControllerAnimated:YES completion:^{
        [[NSNotificationCenter defaultCenter] postNotificationName:@"do" object:self];
    }];
}
@end
